const addTotalMoney = require('./moneyHandle/addTotalMoney')
const updateTotalMoney = require('./moneyHandle/updateTotalMoney')
const getTotalMoney = require('./moneyHandle/getTotalMoney')

// 云函数入口函数
exports.main = async (event, context) => {
  switch (event.type) {
    case 'addTotalMoney':
      return await addTotalMoney.main(event, context);
    case 'updateTotalMoney':
      return await updateTotalMoney.main(event, context);
    case 'getTotalMoney':
      return await getTotalMoney.main(event, context);
  }
};
